//
//  CustomView.h
//  Custom
//
//  Created by apple on 15/9/12.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import <UIKit/UIKit.h>

//声明一个类的存在

@class CustomView;

@protocol CustomViewDelegate <NSObject>

@optional
- (void)touchDown:(CustomView *)sender index:(int)index;
- (UIColor *)changeColor;

@end


@interface CustomView : UIView

@property (nonatomic ,readonly, strong)UILabel *aLabel;

@property (nonatomic ,readonly, strong)UILabel *bLabel;

//block
@property (nonatomic ,copy) void (^touchDown)(CustomView *sender);

@property (nonatomic ,copy) UIColor *(^changeColor)();


//代理

@property (nonatomic ,weak) id<CustomViewDelegate> delegate;
@end
